package com.xzh.wms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xzh.wms.entity.*;
import com.xzh.wms.dao.WarehouseDao;
import java.util.List;
 /**
 * 库房;(206_warehouse)表服务实现类
 * @author : heimi
 * @date : 2024-11-22
 */
@Service
public class WarehouseService {
     
    @Autowired
    private WarehouseDao warehouseDao;
    
    public List<Warehouse> select(WarehouseQuery query) {
        return warehouseDao.select(query);
    }
    
    public Integer insert(Warehouse warehouse) {
        return warehouseDao.insert(warehouse);
    }
    
    public Integer update(Warehouse warehouse) {
        return warehouseDao.update(warehouse);
    }
    
    public Integer delete(Integer id) {
        return warehouseDao.delete(id);
    }
}